Skip to content

fix(nix): add missing Linux deps and GTK wrapper for NixOS builds#358

Merged
Dimillian merged 2 commits intoDimillian:mainfrom
codex-journal:fix/nix-flake-linux-deps
Feb 8, 2026
Merged

fix(nix): add missing Linux deps and GTK wrapper for NixOS builds#358
Dimillian merged 2 commits intoDimillian:mainfrom
codex-journal:fix/nix-flake-linux-deps

Conversation

@codex-journal
Copy link
Contributor

Summary

  • Add missing native dependencies to flake.nix: alsa-lib (audio/cpal), libayatana-appindicator (system tray), glib-networking (WebKit TLS)
  • Add libclang + LIBCLANG_PATH for bindgen (needed by whisper-rs-sys)
  • Add wrapGAppsHook3 so the binary gets GTK runtime env vars (GSettings schemas, XDG_DATA_DIRS)
  • Add LD_LIBRARY_PATH, GIO_MODULE_PATH, and LIBCLANG_PATH to devShell for NixOS
  • Update stale npmDepsHash to match current package-lock.json

Context

The flake.nix added in #136 was never updated as features like dictation (whisper-rs/cpal), system tray, and notifications landed. On NixOS there is no apt-get, so the flake is the only build path. Without these changes, nix build fails on hash mismatch and missing native libs, and even a manually patched build crashes at launch due to missing GSettings schemas.

Test plan

  • nix build completes successfully
  • nix flake check passes
  • nix run . launches the app without GSettings/GTK crashes
  • Opened a project and verified it runs on NixOS

The flake.nix from Dimillian#136 was never updated as new features landed,
making `nix build` fail on Linux/NixOS. This adds the missing native
dependencies (alsa-lib, libayatana-appindicator, glib-networking),
libclang for bindgen, wrapGAppsHook3 for GSettings schemas, and
runtime environment variables for the devShell.
@Dimillian
Copy link
Owner

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Dimillian Dimillian merged commit 0443d19 into Dimillian:main Feb 8, 2026
9 checks passed
gersmann pushed a commit to gersmann/codex-monitor-web that referenced this pull request Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants